package com.wxy.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.wxy.domain.User;

@Component("userClient")
@FeignClient("userservice")
public interface userClient {
	@RequestMapping("/sc01/getId")
	User findById(@RequestParam("id") int id);
	@RequestMapping("/circuitsc01/circuit")
	String getMessage(@RequestParam("id") int id);
}
